package com.wzy.orderSystem.service;

import com.wzy.orderSystem.pojo.user;

import java.sql.SQLException;

import java.util.Date;
import java.util.List;

public interface opUser {
    //根据用户id查询用户信息
    public List<user> selectById(int id) throws SQLException;

    //根据用户id修改用户密码
    public int updateById(int id, String password);

    //根据用户id删除用户
    public int deleteById(int id);

    //添加用户
    public int insert(int id, String username, String password, String phone, String nickName , String  userState, Date nowLogin,Date laseLogin,String address);
}
